<include file="Public:head" title="网站地图"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <include file="Public:left" />
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="__APP__/{$Think.MODULE_NAME}">首页</a></li>
                    <li><a href="{:U('Modals/lists')}">模板管理</a></li>
                    <li><a href="{:U('Modals/detail',array('id'=>$id))}">{$detail.name}</a></li>
                    <li class='active'>网站地图</li>
                </ul>
            </div>

            <input class="form-control" type="text" id="sitemap_cat" autocomplete="off" style="width:220px;margin-left: 20px" placeholder="请输入分类名称" value="{$detail.sitemap_cat}">
            <button class="btn btn-purple btn-sm" type="button" onclick="sitemapCat('{$id}')">提 交 <i class="icon_search icon-on-right bigger-110"></i></button>

            <form action="{:U('Sitemap/detail_post')}" method="POST" id="form"  enctype="multipart/form-data" >
                <div class="page-content">
                    <div class="row">
                        <div class="col-xs-12">
                            <div class="row">
                                <div class="col-xs-12">
                                    <notempty name='lists'>
                                        <div class="table-responsive">
                                            <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                                <thead>
                                                    <tr>
                                                        <th width='45px' class="center">序号</th>
                                                        <th>文件</th>
                                                        <th>标题</th>
                                                        <th>类别</th>
                                                        <!--                                                    <th width="115px">操作</th>-->
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                <foreach name="lists" item="row">
                                                    <tr>
                                                        <td class="center">{$key-1}</td>
                                                        <td><input type="text" value="{$row.html|getUtf8}" name="html[]" style="width:350px;border:0"><a href="__APP__/modals/{$id|getFileBei}{$id}/demo/{$row.html}" target="_blank">查看</a></td>
                                                        <td><input type="text" value="{$row.title}" name="title[]" style="width:350px;border:0"></td>
                                                        <td>

                                                            <select name="cat[]" autocomplete="off">
                                                                <foreach name="cats" item="row2">
                                                                    <option {$row2|getSitemapSelected=###,$row['html'],$sitemap}>{$row2}</option>
                                                                </foreach>
                                                            </select>
                                                        </td>
                                                        <!--                                                    <td class="action-buttons">/td>-->
                                                    </tr>
                                                </foreach>
                                                </tbody>
                                            </table>

                                        </div>
                                        <div id="grid-pager" class="ui-state-default  ui-corner-bottom" dir="ltr">

                                            <button class="btn btn-danger btn-xs ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" type="submit" role="button" aria-disabled="false" >
                                                <span class="ui-button-text">
                                                    <i class="icon-trash bigger-110"></i>
                                                    确 定
                                                </span>
                                            </button>
                                            <a class="purple" data-rel="tooltip" data-original-title="演示地址" href="{:U('Modals/sitemap_view',array('id'=>$id))}" target="_blank"><i class="icon-facetime-video bigger-130"></i></a>
                                            <input type="hidden" name="id" value="{$id}">
                                        </div>
                                        <else/>
                                        <p class='noempty'>没有符合条件的记录！</p>
                                    </notempty>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <include file="Public:setting" />
    </div>
</div>
<include file="Public:del" />
<include file="Public:state" />
<include file="Public:foot" />